package com.neusoft.nepm.mapper;

import com.neusoft.nepm.dto.GmRemarksDto;
import com.neusoft.nepm.dto.GmpageRequestDto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.nepm.po.GridMember;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface GridMemberMapper extends BaseMapper<GridMember>{

	/************************ nepg工程 *********************/
	@Select("select * from grid_member where gm_code=#{gmCode} and password=#{password}")
	public GridMember getGridMemberByCodeByPass(GridMember gridMember);

    int getGridMemberCount(@Param("request")GmpageRequestDto request);

	List<GridMember> listGridMemberPage(@Param("request")GmpageRequestDto request);

	@Update("UPDATE grid_member SET remarks=#{remarks} WHERE gm_id = #{gmId}")
	void addRemarksById(GmRemarksDto gmRemarksDto);

	/************************ nepg工程 *********************/
}
